win32: Add gdk_win32_window_get_impl_hwnd
authorAlexander Larsson <alexl@redhat.com>
Fri, 28 Oct 2011 09:05:53 +0000 (11:05 +0200)
committerAlexander Larsson <alexl@redhat.com>
Thu, 10 Nov 2011 16:41:08 +0000 (17:41 +0100)
This is needed to fix the ms-windows theme not to create
native windows for all child windows.

gdk/gdk.symbols
gdk/win32/gdkwin32.h
gdk/win32/gdkwindow-win32.c

index 15251e2b991c9e01a80ac96aaf6b662c44a3f809..7fa6a46a98c5c2a0a6c3c60c2dfe9c35ddfff829 100644 (file)
@@ -354,6 +354,7 @@ gdk_win32_pixbuf_to_hicon_libgtk_only
 gdk_win32_selection_add_targets
 gdk_win32_set_modal_dialog_libgtk_only
 gdk_win32_window_is_win32
+gdk_win32_window_get_impl_hwnd
 gdk_win32_window_get_handle
 gdk_win32_window_get_type
 gdk_win32_display_get_type
index ec01c1f87218f47ae534799adb87395bdc88afd6..a5560664262be9c1715756a6efdfeb50dbc1b481 100644 (file)
@@ -80,6 +80,7 @@ G_BEGIN_DECLS
 
 /* Return true if the GdkWindow is a win32 implemented window */
 gboolean      gdk_win32_window_is_win32 (GdkWindow *window);
+HWND          gdk_win32_window_get_impl_hwnd (GdkWindow *window);
 
 /* Return the Gdk* for a particular HANDLE */
 gpointer      gdk_win32_handle_table_lookup (HWND handle);
index 035bb4b59358b3c86da3246c4689755a2c28422e..6e39c981ced4e35041d5728e141b08eed7fcfdc3 100644 (file)
@@ -3366,6 +3366,14 @@ _gdk_win32_impl_release_dc (GdkWindowImplWin32 *impl)
     }
 }
 
+HWND
+gdk_win32_window_get_impl_hwnd (GdkWindow *window)
+{
+  if (GDK_WINDOW_IS_WIN32 (window))
+    return GDK_WINDOW_HWND (window);
+  return NULL;
+}
+
 static void
 gdk_win32_cairo_surface_destroy (void *data)
 {